<script setup lang="ts">
interface Progress{
    value:number,
    color:string
}

const props = defineProps<{progressList:Progress[]}>()

</script>

<template>
    <div id="ProcessBar" class="pB_Container">
        <div v-for="(item, index) in progressList" :key="index"
             :style="{ width: item.value + '%', backgroundColor: item.color, paddingLeft: 10 + 'px',color:'black' }">{{item.num}}</div>
    </div>
</template>

<style scoped>
.pB_Container {
    display: inline-flex;
    line-height: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 15px;
    background: #dbdee4;
    border: 1px solid #ecf2fe;
    border-radius: 7px;
}

.pB_Container div {
    float: left;
    /*border-radius: 8px;*/
}

.pB_Container_bottom ul {
    list-style: none;
    text-align: left;
}

.pB_Container_bottom ul li {
    float: left;
    display: flex;
    flex-direction: column;
}

</style>